package com.tuanzi.loan.business.service.receipt.product;

import com.tuanzi.loan.business.entity.receipt.product.ReceiptProductPrice;
import com.tuanzi.loan.core.service.BaseAuditService;
import com.tuanzi.loan.vo.request.receipt.product.ReceiptProductPriceSearchRequest;
import com.tuanzi.loan.vo.response.receipt.product.ReceiptProductPriceSearchResponse;

import java.util.List;

public interface ReceiptProductPriceService extends BaseAuditService<ReceiptProductPrice,Long>{


    //查找和当前价格的最小申请数和最大申请数组成的区间存在重合的价格，就是查询存在申请数存在交集的价格。
    List<ReceiptProductPrice> findPriceByApplyRangeCoincide(ReceiptProductPriceSearchResponse productPrice);

    List<ReceiptProductPriceSearchResponse> findAllVoByCondition(ReceiptProductPriceSearchRequest searchCondition);

    List<ReceiptProductPrice> findAllPoByCondition(ReceiptProductPriceSearchRequest searchCondition);

    void saveOrUpdatePrice(ReceiptProductPriceSearchResponse editRow,ReceiptProductPriceSearchRequest searchCondition);

    void deletePrice(Long deleteId, ReceiptProductPriceSearchRequest searchCondition);
}
